mediastream: Add gtk_media_stream_realize/unrealize()
authorBenjamin Otte <otte@redhat.com>
Sun, 18 Mar 2018 02:20:02 +0000 (03:20 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 18 Mar 2018 20:01:23 +0000 (21:01 +0100)
commit04a3b8b6df1d3b58e9187e11c7e77ad259ad9eec
treedaeac1b4fb0251fc2de3bea6a4335273342f0eba
parent09a21f1cd26d331a43a03a9baa1b8912cbb1b282
mediastream: Add gtk_media_stream_realize/unrealize()

This allows widget to attach their streams to GdkWindow(s)

The idea is to allow attaching a stream to windowing system(s) so the
stream can make use of its resources, in particular GL contexts.

I am however unsure what to attach to:
- GtkWindow
- GdkWindow
- GtkWidget
- GskRenderer
Each of these provide advantages and disadvantages.

So I'm very much open to better suggestions.
gtk/gtkmediastream.c
gtk/gtkmediastream.h
gtk/gtkvideo.c